<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="utf-8" indent="yes" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" 
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>

<!-- write the search box and its to buttons: needs javascript search function -->
<xsl:template name="search">
<xsl:param name="searchPrompt"/>
<xsl:param name="searchTitle"/>
<xsl:param name="searchAllTitle"/>
<xsl:param name="suffix"/>
<xsl:param name="pattern"/>
<xsl:value-of select="$searchPrompt"/>: 
<input type="text">
	<xsl:attribute name="id">
		<xsl:value-of select="concat('search',$suffix)"/>
	</xsl:attribute>
	<xsl:attribute name="value">
		<xsl:value-of select="$pattern"/>
	</xsl:attribute>
</input>
<xsl:text> </xsl:text>
<input type="submit" value=">">
	<xsl:attribute name="onclick"><xsl:value-of select="concat('search(&quot;search',$suffix,'&quot;)')"/></xsl:attribute>
	<xsl:attribute name="title"><xsl:value-of select="$searchTitle"/></xsl:attribute>
</input>
<xsl:text> </xsl:text>
<input type="submit" value=">>">
	<xsl:attribute name="onclick"><xsl:value-of select="concat('search(&quot;searchAll',$suffix,'&quot;)')"/></xsl:attribute>
	<xsl:attribute name="title"><xsl:value-of select="$searchAllTitle"/></xsl:attribute>
</input>
</xsl:template>
</xsl:stylesheet>
